package com.example.lib;

public class MyClass{
    public static void main(String[] args){
        Duck duck = new ReadHeadDuck();
        duck.display();
        duck.performFly();
        duck.performQuack();

        duck.setFlyBehavior(new FlyNoWay());
        duck.performFly();
    }
}